<%-- 
    Document   : cadastrarProfessorOrientador
    Created on : 11/10/2011, 20:35:06
    Author     : Thiago
--%>

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<head>
<title><h:outputText value="SGB - Cadastrar Professor Orientador"></h:outputText></title>
</head>
<body>

<h:form id="ajaxValidatorForm">
<rich:panel>
<f:facet name="header">
                <h:outputText value="Adicionar Contato" />
            </f:facet>
<h:panelGrid columns="2">
                <h:outputText value="Cpf:" /><br/>
		<h:inputText  value="#{professorOrientadorDAO.po.cpf}" /><br/>
		<h:outputText value="Cidade:" /><br/>
		<h:inputText  value="#{professorOrientadorDAO.po.cidade}" /><br/>
		<h:outputText value="Departamento:" /><br/>
		<h:inputText value="#{professorOrientadorDAO.po.departamento}" /><br/>
		<h:outputText value="Email:" /><br/>
		<h:inputText value="#{professorOrientadorDAO.po.email}" /><br/>
		<h:outputText value="Endereco:" /><br/>
		<h:inputText value="#{professorOrientadorDAO.po.endereco}" /><br/>
		<h:outputText value="Nome:" /><br/>
		<h:inputText value="#{professorOrientadorDAO.po.nome}" /><br/>
		<h:outputText value="Rg:" /><br/>
                <h:inputText value="#{professorOrientadorDAO.po.rg}" /><br/>
                <h:outputText value="Senha:" /><br/>
                <h:inputText value="#{professorOrientadorDAO.po.senha}" /><br/>
                <h:outputText value="Siape:" /><br/>
                <h:inputText value="#{professorOrientadorDAO.po.siape}" /><br/>
                <h:outputText value="Telefone:" /><br/>
                <h:inputText value="#{professorOrientadorDAO.po.telefone}" /><br/>
                <h:outputText value="Ua:" /><br/>
                <h:inputText value="#{professorOrientadorDAO.po.unidade_academica}" /><br/>
        
 
    
</h:panelGrid>

	<h:commandButton type="submit" value="Salvar" action="#{professorOrientadorDAO.inserir()}"/>
	<h:commandButton type="submit" value="Limpar" action="#{professorOrientadorDAO.limparCampos()}"/>		
	</rich:panel>
	</h:form>
</body>
</f:view>
</html>